<div id="header">
    <div class="menu">
        <ul>
            <li rel=""><a href="<?=base_url()?>">Trang chủ</a></li>
            <li rel="about"><a href="<?=base_url()?>about">Giới thiệu</a></li>
            <li rel="products"><a href="<?=base_url()?>products">Sản phẩm</a></li>
            <li rel="news" ><a href="<?=base_url()?>news">Tin tức</a></li>
            <li rel="advice"><a href="<?=base_url()?>advice">Tư vấn</a></li>
            <li rel="contact"><a href="<?=base_url()?>contact">Liên hệ</a></li>
        </ul>
        <? $coltr = $this->uri->segment(1);?>
        <script language="javascript">
		$(document).ready(function(e){
			$('.menu li').removeClass('current');
			$('.menu li[rel=<?=$coltr?>]').addClass('current') ;
			$(".menu").lavaLamp({ fx: "linear", speed: 300});
			$('.pix_diapo').diapo();
		});
        </script>
        </li>
    </div>
    <div class="btevent">
        <div><a href="<?=base_url()?>contact"><img width="68" height="24" src="<?=base_url()?>templates/images/bt_event.png"></a></div>
    </div>
    <div class="clear"></div>
    <div class="adv">
        <div id="adv1" class="adv1 ">
            <section > 
                <div style="overflow:hidden; width:711px;"> 
                        <div class="pix_diapo">
                        <? 
						$list = $this->home->get_bnmain();
						foreach($list as $rs){?>
                        <div><img src="<?=base_url()?>uploads/images/<?=$rs->BannerImg?>"></div>
                        <? } ?>
                        </div>
                </div>             
            </section>
        </div>
        <!--<div id="adv1" class="adv1 "> 
          <div><img width="711" height="267" src="<?=base_url()?>uploads/images/<?=$rs->BannerImg?>"></div>
        </div>-->
        <div class="adv2">
            <ul>
            	<? $listcat = $this->home->getCat(3);
				foreach($listcat as $rs):?>
                <li><a class="clickbn" ajax="<?=base_url()?>home/getBannerId/<?=$rs->idBannerCat?>" href="#"><img width="210" height="83" src="<?=base_url()?>uploads/images/<?=$rs->images?>"></a></li>
               <? endforeach ?>
            </ul>
        </div>
    </div>
    <div class="clear"></div>
    <div class="bt">
        <div class="l_bt"></div>
        <div class="r_bt"></div>
        <div class="c_bt"></div>
    </div>
    <div class="clear"></div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$('.clickbn').click(function(){
		var links=$(this).attr('ajax');
		$.ajax({
			url:links,
			cache:false,
			success:function(result){
				$('#adv1').html(result);
			}
		});

	});
});
</script>